package day02;

public class DoubleDemo {
    public static void main(String[] args) {
        double a=10.0,b=2.9;
//        float c=3.14F;
        double c=6.0,d=4.9;
        double e=3.0,f=2.9;
        System.out.println(c-d);//1.0999999999999996   发生舍入误差
        System.out.println(a-b);//7.1
        System.out.println(e-f);//0.10000000000000009
    }
}